*::after, *::before {
  box-sizing: border-box;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #222;
  overflow: hidden;
}

h2{
  color: #FFF;
  font-size: 14vw;
  z-index: 10000;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 20px 30px rgba(0,0,0,.2);
}

span{
  position: absolute;
  pointer-events: none;
  width: 300px;
  height: 300px;
  background-size: contain;
  background-repeat: no-repeat;
  animation: animate 4s linear infinite;
}

@keyframes animate {
  0%{
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  5%, 95%{
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}